<!DOCTYPE html>
<script src="resources/responsive-test.js"></script>
<script>
assertCSSResponsive({
  property: 'clip',
  from: 'inherit',
  to: 'rect(200px auto auto auto)',
  configurations: [{
    state: {inherited: 'auto'},
    expect: [
      {at: 0.25, is: 'auto'},
      {at: 0.75, is: 'rect(200px auto auto auto)'},
    ],
  }, {
    state: {inherited: 'rect(100px 100px auto auto)'},
    expect: [
      {at: 0.25, is: 'rect(100px 100px auto auto)'},
      {at: 0.75, is: 'rect(200px auto auto auto)'},
    ],
  }, {
    state: {inherited: 'rect(100px auto auto auto)'},
    expect: [
      {at: 0.25, is: 'rect(125px auto auto auto)'},
      {at: 0.75, is: 'rect(175px auto auto auto)'},
    ],
  }],
});

assertCSSResponsive({
  property: 'clip',
  from: neutralKeyframe,
  to: 'rect(200px auto auto auto)',
  configurations: [{
    state: {underlying: 'auto'},
    expect: [
      {at: 0.25, is: 'auto'},
      {at: 0.75, is: 'rect(200px auto auto auto)'},
    ],
  }, {
    state: {underlying: 'rect(100px 100px auto auto)'},
    expect: [
      {at: 0.25, is: 'rect(100px 100px auto auto)'},
      {at: 0.75, is: 'rect(200px auto auto auto)'},
    ],
  }, {
    state: {underlying: 'rect(100px auto auto auto)'},
    expect: [
      {at: 0.25, is: 'rect(125px auto auto auto)'},
      {at: 0.75, is: 'rect(175px auto auto auto)'},
    ],
  }],
});
</script>
